package com.netty.clientserver.packet;


import com.netty.clientserver.command.Command;
import com.netty.clientserver.packet.base.Packet;
import com.netty.common.entity.User;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**注册用户
 * @author LiuXiaoYu
 * @date 2022/2/3- 9:39
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Register extends Packet {

    private User user;

    /**如果是群聊channel说明是groupid否则就是userid*/
    private Integer toId;

    /**是否是群聊channel*/
    private Boolean groupChannel;


    @Override
    public Integer getCommand() {
        return Command.REGISTER;
    }
}
